import request from '@/http/request'

export function getAppointmentList(data) {
  return request({
    url: '/appointments/list',
    method: 'post',
    data
  })
}

export function getAppointment(data) {
  return request({
    url: '/appointments',
    method: 'post',
    data
  })
}
//
export function getAppointmentReview(data) {
  return request({
    url: '/appointments/review',
    method: 'post',
    data
  })
}

export function getAppointmentReviews(data) {
  return request({
    url: '/appointments/reviews',
    method: 'post',
    data
  })
}

export function getAppointmentMyListJian(data) {
  return request({
    url: '/user/get_my_reservation_serviceAppointments_list',
    method: 'post',
    data
  })
}
// 我发布的预约 列表
export function getAppointmentMyList(data) {
  return request({
    url: '/user/get_my_serviceAppointments_list',
    method: 'post',
    data
  })
}

export function getAppointmentReserve(data) {
  return request({
    url: '/appointments/reserve',
    method: 'post',
    data
  })
}

// 预约完成
export function getAppointmentReserveFinish(data) {
  return request({
    url: '/appointments/reserveFinish',
    method: 'post',
    data
  })
}
export function updateFinish(data) {
  return request({
    url: '/user/updateFinish',
    method: 'post',
    data
  })
}